package com.mbg17.service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mbg17.dao.TestRecordMapper;
import com.mbg17.domain.TestRecord;
import com.mbg17.service.service.TestRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = {Exception.class})
public class TestRecordServiceImpl extends ServiceImpl<TestRecordMapper, TestRecord> implements TestRecordService {

    @Resource
    private TestRecordMapper testRecordMapper;

    @Override
    public List<TestRecord> getAllTestRecord() {
        return testRecordMapper.getAllTestRecord();
    }

    @Override
    public TestRecord getTestRecordById(Integer id) {
        return testRecordMapper.getTestRecordById(id);
    }

    @Override
    public Integer updateStatusByTaskIdInteger(Integer taskId) {
        return testRecordMapper.updateStatusByTaskIdInteger(taskId);
    }
}
